/*
 * Groups a key and an array of values together
 */
package org.kth.dks.dks_dht;

import java.io.Serializable;
import java.util.List;

public class DHTStatisticsPair implements Serializable {
    public Long key;
    public List values;
    public int        cc; 
    public DHTStatisticsPair(Long key, List values, int cc) {
	this.key = key;
	this.values = values;
	this.cc  = cc; 
    }

    public boolean equals(Object o){	    
	if (o==this)
	    return true;
	else if (!(o instanceof DHTStatisticsPair))
	    return false;
	else{
	    DHTStatisticsPair thisO = (DHTStatisticsPair) o; 
	    return thisO.key == key &&
		thisO.values.equals(values) && thisO.cc == cc; 
	}
    }
}
    
